<?php

$strSQL = "SELECT * FROM tblCategory";
$strJoin = " WHERE ";

    if ((isset($intCategoryID)) && (ctype_digit($intCategoryID))){
            
            $strSQL .= $strJoin."tblCategory.ID = '$intCategoryID'";
			$strJoin = " AND ";
    }else{
	
		if ($strCategoryList){
			$strSQL .= $strJoin."tblCategory.ID IN (".mysql_escape_string($strCategoryList).")"; 
			$strJoin = " AND ";
			unset($strCategoryList);
		}
		
	}
    $strSQL .= " ORDER BY tblCategory.Category;";	  
	//echo $strSQL;
    include (MODULE . "/action/actMySqlResults");
?>
